from tkinter import *
from tkinter import ttk, font, filedialog as fd
import shutil, os, ctypes, pyglet
from fractions import Fraction
from PIL import ImageTk, Image, ImageOps, ImageDraw, ImageFont
from Program import Program
from Windows import Windows

##########################################################
#               Recipe Collector V2                      #
##########################################################
#     This program is used to create and save recipes,   #
#  ingredients, and their costs. This makes it easier to #
#    keep track of food items in your house, gives you   #
#  ideas on what you can make with the ingredients, and  #
#       calculates the total cost of the recipes.        #
##########################################################

# Notes:
# In this version I have changed how ingredients are saved and their save files.
# Previously I was using json formatting to save and load ingredients but
# I have built this one using CSV formatting to prevent issues when loading large
# save files. I am aware there are modules to save and read csv files, but I wanted
# the challenge of doing it myself.


if __name__ == "__main__":
    Program.load("recipes.csv", "ingredients.csv", "pantry.csv")
    testObj = Windows()
    testObj.mainloop()
